#pragma once
#include <stdio.h>
#include <math.h>
#define PI 3.14159265

class ComplexNumber
{
public:
	ComplexNumber(void);
	ComplexNumber(double, double);
	~ComplexNumber(void);
	ComplexNumber& operator+(ComplexNumber&);
	ComplexNumber& operator-(ComplexNumber&);
	ComplexNumber& operator*(ComplexNumber&);
	ComplexNumber& operator/(ComplexNumber&);
	ComplexNumber& Sqrt();
	bool operator==(ComplexNumber&);
	bool operator!=(ComplexNumber&);
	ComplexNumber& Conj();
	double Abs();
	ComplexNumber& ToPolar();

private:
	double real;
	double imag;
};

